
// 自动生成模板Device
package device
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 设备信息 结构体  Device
type Device struct {
    global.GVA_MODEL
  DeviceID  *string `json:"deviceId" form:"deviceId" gorm:"primarykey;comment:设备编号;column:device_id;" binding:"required"`  //设备编号
  DeviceName  *string `json:"deviceName" form:"deviceName" gorm:"comment:设备名称;column:device_name;" binding:"required"`  //设备名称
  Brand  *string `json:"brand" form:"brand" gorm:"comment:设备品牌;column:brand;" binding:"required"`  //设备品牌
  Location  *string `json:"location" form:"location" gorm:"comment:所在位置;column:location;"`  //所在位置
  OperateStatus  *string `json:"operateStatus" form:"operateStatus" gorm:"comment:运营状态;column:operate_status;" binding:"required"`  //运营状态
  RunStatus  *string `json:"runStatus" form:"runStatus" gorm:"comment:运行状态;column:run_status;" binding:"required"`  //运行状态
  ActivateStatus  *string `json:"activateStatus" form:"activateStatus" gorm:"comment:激活状态;column:activate_status;" binding:"required"`  //激活状态
  AfterSalePerson  *string `json:"afterSalePerson" form:"afterSalePerson" gorm:"comment:售后人员;column:after_sale_person;"`  //售后人员
}


// TableName 设备信息 Device自定义表名 devices
func (Device) TableName() string {
    return "devices"
}





